<?php
class MessageBrokerController extends Zend_Controller_Action 
{ 
	public function init()
	{
		$this->_helper->viewRenderer->setNoRender(true);
	}
	
	public function amfAction()
	{
		require_once 'ZendAmfDs/ZendAmfDs.php';
		$server = new ZendAmfDs(APPLICATION_PATH . '/config/data-services.xml');
		$server->addDirectory(APPLICATION_PATH . '/services/');		
		echo($server->handle());
	}
}
